#ifndef __TUTU_QUEUE_H__
#define __TUTU_QUEUE_H__

#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
// #define TutuQueueHandle void*
#define TutuQueueHandle QueueHandle_t

typedef struct{
    int msg_id;
    int data_len;
    char *data;
}TutuQueueMsg;

typedef struct{
    char (*icreate)(TutuQueueHandle *handle,int size);
    char (*isend)(TutuQueueHandle handle,TutuQueueMsg*msg);
    char (*irecv)(TutuQueueHandle handle,TutuQueueMsg *recvMsg,float timeout);
    void (*idel)(TutuQueueHandle handle);
    int (*iCount)(TutuQueueHandle handle);
}TutuQueue;

//初始化
void TutuQueue_Init(TutuQueue *myself);

#endif 